package com.hhl.mapper;

import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Select;

import com.hhl.entity.User;

public interface UserMapper {

	@Select(" SELECT  * FROM user where userName=#{userName} and password=#{password}")
	public User login(User user);

	@Insert("insert user values (null,#{userName},#{age},#{password})")
	public int insertUser(User user);
}
